$.Class('Monster', {
		count: 0
	},
/* @prototype */
	{
		init: function( name ) {

			// saves name on the monster instance
			this.name = name;

			// sets the health
			this.health = 10;

			// increments count
			this.constructor.count++;
		},
		eat: function( smallChildren ){
			this.health += smallChildren;
		},
		fight: function() {
			this.health -= 2;
		}
	}
);

$.Class('SystemResource', {}, {
	hid: null,
	
	init: function(hid) {
		this.hid	= hid;
	},
	getHid: function(){
		return this.hid;
	}
});

SystemResource('StorageResource', {
  value: 10,
	
	init: function(hid, value) {
		this._super(hid);
		this.value = value;
	},
	
	getValue: function() {
		return this.value;
	}
});

//systemResource = new SystemResource('Wood');
//console.log(systemResource.getHid());

storageResource = new StorageResource('Wood', 15);
console.log(storageResource.getHid());
console.log(storageResource.getValue());